home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
130 MIDI Tool Box
/
130 MIDI Tool Box.iso
/
mcccfg
/
mcccfg.txt
< prev
next >
Wrap
Text File
|
1988-01-29
|
2KB
|
38 lines
Using the MQ.CFG File
The MIDI Co-processor Card can be installed at 4 different interrupt levels
and 16 different base I/O addresses. This can present a problem to the
MIDI application programmer. The MIDI Starter System handles this problem
though the MQ.CFG file. This file always contains the interrupt level and
base I/O address for the MCC. Easy-8 allows you to change this file
through the Program Installation function. All of the other programs in
the MSS read the MQ.CFG file to determine how the MCC is installed.
By using the kind of routines included in the MCCCFG.C source file, you too
can divorce your MIDI program from being concerned about how the MCC is
installed. This source module contains code that reads the MQ.CFG file and
installs the ToolKit accordingly. You never have to worry about IRQ
numbers and base I/O addresses!
Here is a summary of the functions found in MCCCFG.C:
mcc_config Reads the MQ.CFG file and installs the ToolKit at the
current IRQ and base address. Call this once, at the
start of your program.
mcc_deconfig Uninstalls the ToolKit. You MUST call this function at
the end of your program. If you do not, your system
will probably hang on the next interrupt from the MCC.
mcc_level Returns the IRQ number for the MCC.
mcc_addr Returns the base I/O address for the MCC.
Even if you do not use the ToolKit, you can use routines such as these to
insulate your program from the specifics of an MCC installation.